<?php
namespace Home\Controller;
use Think\Controller;
vendor('taobao.TopSdk');//引入淘宝SDK
class CustomerController extends Controller {
	//构造函数
	public function __construct(){
		parent::__construct();
		
		if(empty($_SESSION['user']))
		{
			 $this->error('对不起,您还没有登录!请先登录!', U('Login/login'), 1);
		}
	}
	
	public function index(){
		$pageNo=empty($_REQUEST['pageNo'])?1:$_REQUEST['pageNo'];
		$pageSize=empty($_REQUEST['pageSize'])?10:$_REQUEST['pageSize'];
		$shoptitle=empty($_REQUEST['shoptitle'])?'':$_REQUEST['shoptitle'];
		$service=empty($_REQUEST['service'])?'':$_REQUEST['service'];
		$tid=empty($_REQUEST['tid'])?'':$_REQUEST['tid'];
		$receiver_name=empty($_REQUEST['title'])?'':$_REQUEST['title'];
		$receiver_mobile=empty($_REQUEST['phone'])?'':$_REQUEST['phone'];
		$starttime=empty($_REQUEST['starttime'])?'':trim($_REQUEST['starttime']);
		$endtime=empty($_REQUEST['endtime'])?'':trim($_REQUEST['endtime']);
		$name=empty($_REQUEST['name'])?'pay_time':$_REQUEST['name'];
		$asc=empty($_REQUEST['asc'])?'desc':trim($_REQUEST['asc']);
		$invoice_no=empty($_REQUEST['invoice_no'])?'':$_REQUEST['invoice_no'];
		$outer_iid=empty($_REQUEST['outer_iid'])?'':$_REQUEST['outer_iid'];
		
		
		$orders=D('orders');
		$res=$orders->order_list($pageNo,$pageSize,$starttime,$endtime,$tid,$shoptitle,$receiver_name,$receiver_mobile,'customer','t.pay_time','desc',$service,'',$outer_iid,'','',$invoice_no);
		
		$shop_list=M('shop')->field("id,shop_name")->select();
		
		$service_list=D('drop_down')->dropdown_list('service');
		
		$template=M('print_template');
		$template_list=$template->field('id,name,bgimg,content')->order('id')->select();
		
		$address=D('address');
		$rea=$address->address_list();
		$address_list=$rea['address_list'];

		
		$this -> assign('statistics',$res['statistics']);
		$this -> assign('user_type',$_SESSION['user']['type']);
		$this -> assign('order_list',$res['order_list']);
		$this -> assign('data',$res['data']);
		$this -> assign('group_list',$group_list);
		$this -> assign('service_list',$service_list);
		$this -> assign('template_list',$template_list);
		$this -> assign('address_list',$address_list);
		$this -> assign('count',$res['count']);
		$this -> display();
    }
	
	public function customer_info(){
		
		$id=empty($_REQUEST['id'])?0:$_REQUEST['id'];
		
		$shop_list  = M('shop')->field('id,shop_name')->select();
		$pay_list   = D('drop_down')->dropdown_list('pay_method'); 
		$user_list  = M('user_list')->field('id,username')->select();
		$goods_list = M('goods')->field("id,code,title")->select();
	
		$this->assign("shop_list",$shop_list);
		$this->assign("goods_list",$goods_list);
		$this->assign("pay_list",$pay_list);
		$this->assign("user_list",$user_list);
		$this->assign("jumpurl",$_SERVER['HTTP_REFERER']);
		$this->display();
    }
	public function customer_add(){
		$goods_id=	empty($_POST['goods'])?'':$_POST['goods'];
		
		$goods=D('goods');
		
		if(!empty($goods_id))
		{
			$goodsinfo=$goods->goods_info_id($goods_id);
		}
		
		$goodsset=$goods->goodsset_info($goodsinfo['code']);
		
		
		$trades =M('trades'); 
		$data=array();//接收的数据 
		$data['title']=empty($_POST['t_title'])?'':$_POST['t_title'];
		$data['receiver_name']=empty($_POST['receiver_name'])?'':$_POST['receiver_name'];
		$data['receiver_mobile']=empty($_POST['receiver_mobile'])?'':$_POST['receiver_mobile'];
		$data['receiver_state']=empty($_POST['receiver_state'])?'':$_POST['receiver_state'];
		$data['receiver_city']=empty($_POST['receiver_city'])?'':$_POST['receiver_city'];
		$data['receiver_district']=empty($_POST['receiver_district'])?'':$_POST['receiver_district'];
		$data['receiver_address']=empty($_POST['receiver_address'])?'':$_POST['receiver_address'];
		$data['num']=1;
		$data['shifa']=1;
		$data['is_sh']=1;
		$data['sh_status']=0;
		$data['price']=empty($goodsinfo)?'':$goodsinfo['price'];
		$data['tid']=empty($_POST['tid'])?'':$_POST['tid'];
		$data['post_fee']=empty($_POST['post_fee'])?'':$_POST['post_fee'];
		$data['total_fee']=$data['price'];	
		$data['payment']=$data['price']+$data['post_fee'];
		$data['logistics_company']	=	empty($_POST['logistics_company'])?'':$_POST['logistics_company'];	
		$data['waybill_code']	=	empty($_POST['waybill_code'])?'':$_POST['waybill_code'];	
		$data['created']=date('Y-m-d H:i:s');
		$data['pay_time']=date('Y-m-d H:i:s');
		$data['status']='WAIT_SELLER_SEND_GOODS'; 
		$data['visitor_id']	 = $_SESSION['user']['id'];
		$tid['tid']	=	$data['tid'];
	
		
		$find	=	$trades -> field('tid') -> where($tid) -> find();
		
	
		
		if(!empty($find))
		{
			$this->error('订单号已存在');
			exit;
		}
		else{
			$is_trades_add	=	$trades -> add($data);
		}
	
	
		$orders			=	M('orders');
		$orders_data	=	array();
		$orders_data['title']				=	empty($goodsinfo)?'':$goodsinfo['title'];	
		$orders_data['outer_iid']			=	empty($goodsinfo)?'':$goodsinfo['code'];	
		//$orders_data['logistics_company']	=	empty($_POST['logistics_company'])?0:$_POST['logistics_company'];	
		//$orders_data['invoice_no']			=	empty($_POST['waybill_code'])?'':$_POST['waybill_code'];	
		$orders_data['price']				=	empty($goodsinfo)?0:$goodsinfo['price'];
		$orders_data['total_fee']           =   $orders_data['price'];	
		$orders_data['payment']             =   $orders_data['price']+$data['post_fee'];	
		$orders_data['num']					=	1;
		$orders_data['shifa']               =   1;	
		$orders_data['oid']					=	empty($_POST['tid'])?'':$_POST['tid'];
		$orders_data['tid']					=	empty($_POST['tid'])?'':$_POST['tid'];
		$orders_data['status']              =   'WAIT_SELLER_SEND_GOODS';
		$orders_data['visitor_id']	 		= 	$_SESSION['user']['id'];
		$oid['oid'] 	=	$orders_data['oid'];
		$orders_find	=	$orders -> field('oid') -> where($oid) -> find();
		
		if(!empty($orders_find)){
			$this->error('订单号已存在');
			exit;
		}
		else{
			$is_orders_add	=	$orders -> add($orders_data);
		}
		//echo $orders -> getlastsql();
		
		
		if(!empty($is_trades_add) && !empty($is_orders_add)){
			
			//$this->success('添加成功',U('orders/dingdan'));
			$this->redirect('orders/order_unchecked');
			
		}
		else{
			$this->error('添加失败');
		}
    }
	
	/* 删除 */
	public function customer_delete(){
	   $visitor_id = $_SESSION['user']['id'];
	   $tid=empty($_REQUEST['id'])?0:$_REQUEST['id'];
	   $where = "tid = '$tid'";
	   $shouquan = M('shouquan') -> field('group_id') -> where("visitor_id = '$visitor_id'") -> find();
	   if($shouquan['group_id']){
		   $shouquan2 = M('shouquan') -> field('visitor_id') -> where("group_id = '".$shouquan['group_id']."'") -> select(); 	
		   foreach($shouquan2 as $k=> $val){
			   if($k == '0'){
				   $s_str = "'".$val['visitor_id']."'";
			   }else{
				   $s_str .= ","."'".$val['visitor_id']."'";
			   }
		   }
		   $where.= " and visitor_id in($s_str)";
	   }else{
		   $where .= " and visitor_id = '$visitor_id'";
	   }		
	   $orders=M('orders');
	   $trades=M('trades');
	   
	   $res=$trades->where($where)->delete();
	   
	   if($res)
	   {  
	      $reso=$orders->where($where)->delete();
	   }
	   
	   header('Location:'.$_SERVER['HTTP_REFERER']);   
		
    }
	
	public function customer_export()
	{   
		$shoptitle=empty($_REQUEST['shoptitle'])?'':$_REQUEST['shoptitle'];
		$tid=empty($_REQUEST['tid'])?'':$_REQUEST['tid'];
		$receiver_name=empty($_REQUEST['title'])?'':$_REQUEST['title'];
		$receiver_mobile=empty($_REQUEST['phone'])?'':$_REQUEST['phone'];
		$starttime=empty($_REQUEST['starttime'])?'':trim($_REQUEST['starttime']);
		$endtime=empty($_REQUEST['endtime'])?'':trim($_REQUEST['endtime']);
		$name=empty($_REQUEST['name'])?'pay_time':$_REQUEST['name'];
		$asc=empty($_REQUEST['asc'])?'desc':trim($_REQUEST['asc']);
		
		$orders=D('orders');
		
		$res=$orders->order_list('','',$starttime,$endtime,$tid,$shoptitle,$receiver_name,$receiver_mobile,'customer',$name,$asc);
		  
	    $arr['o.id']='id';
		$arr['t.pay_time']='付款时间';
		$arr['t.receiver_name']='姓名';
		$arr['t.receiver_mobile']='电话';
		$arr['t.receiver_address']='地址';
		$arr['o.oid']='订单号';
		$arr['o.title']='商品标题';
		$arr['o.outer_iid']='商品编码';
		$arr['o.price']='商品价格';
		$arr['o.num']='购买数量';
		$arr['o.shifa']='实发数量';
		$arr['o.payment']='金额';
		$arr['o.logistics_company']='快递';
		$arr['o.invoice_no']='运单号';
		$arr['t.post_fee']='快递费';
		$arr['t.seller_flag']='卖家备注旗帜';
		$arr['t.seller_memo']='卖家备注';
		$arr['t.buyer_memo']='买家备注';
		$arr['t.title']='店铺名';
		$arr['t.refund_fee']='退款金额';
		$arr['t.refund_num']='退款数量';
		$arr['t.refund_payment']='退款特殊赔付';
		$arr['t.refund_remarks']='退款备注';
		$arr['t.refund_operator']='退款操作人';
		$arr['t.refund_time']='退款时间';
		
		$content="<table border='1' style='border-volor:gray;vnd.ms-excel.numberformat:@'><tr><td>";
		$content.= implode("</td><td>\t", array_keys($arr)) . "</td></tr>\n";
        $content.= "<tr><td>".implode("</td><td>\t", $arr) . "</td></tr>\n";
		
		foreach($res['order_list'] as $v)
		{   
		    $content .="<tr><td>";
			$data['o.id']=$v['orderid'];
			$data['t.pay_time']=$v['pay_time'];
			$data['t.receiver_name']=$v['receiver_name'];
			$data['t.receiver_mobile']=$v['receiver_mobile'];
			$data['t.receiver_address']=$v['receiver_address'];
			$data['o.oid']=$v['oid'];
			$data['o.title']=$v['title'];
			$data['o.outer_iid']=$v['outer_iid'];
			$data['o.price']=$v['price'];
			$data['o.num']=$v['num'];
			$data['o.shifa']=$v['shifa'];
			$data['o.payment']=$v['payment'];
			$data['o.logistics_company']=$v['logistics_company'];
			$data['o.invoice_no']=$v['invoice_no'];
			$data['t.post_fee']=$v['post_fee'];
			$data['t.seller_flag']=$v['seller_flag_name'];
			$data['t.seller_memo']=$v['seller_memo'];
			$data['t.buyer_memo']=$v['buyer_memo'];
			$data['t.title']=$v['shop'];
			$data['t.refund_fee']=$v['refund_fee'];
			$data['t.refund_num']=$v['refund_num'];
			$data['t.refund_payment']=$v['refund_payment'];
			$data['t.refund_remarks']=$v['refund_remarks'];
			$data['t.refund_operator']=$v['refund_operator'];
			$data['t.refund_time']=$v['refund_time'];
		
			$content .= implode("</td><td>"."\t", $data) . "</td></tr>\n";
		}
		$content.="</tr></table>";
		$filename="客户数据".date('YmdHis').".xls";
		header("Content-Disposition: attachment; filename=".$filename);
		header("Content-Type: application/vnd.ms-excel");
		echo $content;
		
	}
	
	public function customer_edit_info()
	{	
		$tid=empty($_REQUEST['tid'])?0:$_REQUEST['tid'];
		$customer =D('Customer');
		/*$shop=M('shop');
		$shop_list=$shop->field('id,shop_name')->select(); */
	
		//$service_list=$customer->dropdown_list('service'); 
		
		$order=D('orders');
		$orderinfo=$order->get_order_info($tid);
	 
		
		$this -> assign('user_type',$_SESSION['user']['type']);
		$this->assign("orderinfo",$orderinfo);
		$this->assign("shop_list",$shop_list);
		$this->assign("service_list",$service_list);
		$this->assign("jumpurl",$_SERVER['HTTP_REFERER']);
		$this->display();
	}
	
	
	public function customer_edit()
	{   
	    $jumpurl=empty($_POST['jumpurl'])?'':$_POST['jumpurl'];
		$tid=empty($_POST['tid'])?'':$_POST['tid'];
		$outer_iid=empty($_POST['outer_iid'])?'':$_POST['outer_iid'];
		
		$data['refund_num']=empty($_POST['refund_num'])?'':$_POST['refund_num'];
		$data['refund_fee']=empty($_POST['refund_fee'])?'':$_POST['refund_fee'];
		$data['refund_payment']=empty($_POST['refund_payment'])?'':$_POST['refund_payment'];
		$data['refund_remarks']=empty($_POST['refund_remarks'])?'':$_POST['refund_remarks'];
		
		if(empty($data['refund_num']) && empty($data['refund_fee']) && empty($data['refund_payment']))
		{   
		    $data['refund_operator']='';
			$data['refund_time']='';
		}
		else
		{   
		    $data['refund_operator']=empty($_POST['refund_operator'])?'':$_POST['refund_operator'];
			$data['refund_time']=date('Y-m-d H:i:s');
		}
		$data['service']=empty($_POST['service'])?'':$_POST['service'];
		$data['post_fee']=empty($_POST['post_fee'])?'0':$_POST['post_fee'];
		$data['receiver_name']=empty($_POST['receiver_name'])?'':$_POST['receiver_name'];
		$data['receiver_mobile']=empty($_POST['receiver_mobile'])?'':$_POST['receiver_mobile'];
		$data['receiver_address']=empty($_POST['receiver_address'])?'':$_POST['receiver_address'];
		$data['title']=empty($_POST['shop'])?'':$_POST['shop'];
		$data['seller_memo']=empty($_POST['seller_memo'])?'':$_POST['seller_memo'];
		
		$trades=M('trades');
		$orders=M('orders');
		$where = "tid = '$tid'";
		$visitor_id = $_SESSION['user']['id'];
		$shouquan = M('shouquan') -> field('group_id') -> where("visitor_id = '$visitor_id'") -> find();
		if($shouquan['group_id']){
			$shouquan2 = M('shouquan') -> field('visitor_id') -> where("group_id = '".$shouquan['group_id']."'") -> select(); 	
			foreach($shouquan2 as $k=> $val){
				if($k == '0'){
					$s_str = "'".$val['visitor_id']."'";
				}else{
					$s_str .= ","."'".$val['visitor_id']."'";
				}
			}
			$where.= " and visitor_id in($s_str)";
		}else{
			$where .= " and visitor_id = '$visitor_id'";
		}	
		$rest=$trades->where($where)->save($data);
		
		$outer_iid=empty($_POST['outer_iid'])?'':$_POST['outer_iid'];
		$num=empty($_POST['num'])?'':$_POST['num'];
		$price=empty($_POST['price'])?'':$_POST['price'];
		foreach($outer_iid as $k=>$vo)
		{
			$data_orders['outer_iid']=$vo;
		    $data_orders['num']=$num[$k];
		    $data_orders['price']=$price[$k];
			$data_orders['id']=$k;
			$reso=$orders->where($where)->save($data_orders);
		}
		
	   header('Location:'.$jumpurl);
		/*$datta_orders['logistics_company']=empty($_POST['express'])?'':$_POST['express'];
		$datta_orders['invoice_no']=empty($_POST['invoice_no'])?'':$_POST['invoice_no'];
		$datta_orders['outer_iid']=empty($_POST['outer_iid'])?'':$_POST['outer_iid'];
		$datta_orders['num']=empty($_POST['num'])?0:$_POST['num'];
		$datta_orders['price']=empty($_POST['price'])?0:$_POST['price'];*/
		
		
		/*$orderinfo=$trades->where($wheret)->find();
		$rest=$trades->where($wheret)->save($data);
		$reso=$orders->where($whereo)->save($datta_orders);
		
		$goods=M('goods');
		$whereg['title']=$goodstitle;
		$goodsinfo=$goods->where($whereg)->find();
		
		if($reso!==false && $rest!==false)
		{
			if(empty($orderinfo['refund_num']))
			{
				$datag['stock']=$goodsinfo['stock']+$data['refund_num'];
			}
			else
			{
				$datag['stock']=$goodsinfo['stock']-$orderinfo['refund_num']+$data['refund_num'];
			}
			
			$resg=$goods->where($whereg)->save($datag);
			$this->success('编辑成功',$jumpurl);
		}
		else
		{
			$this->error('编辑失败',$jumpurl);
		}*/
		
	}
	//审核编辑
	public function cgetTrades_edit()
	{   
	    $jumpurl=empty($_POST['jumpurl'])?'':$_POST['jumpurl'];
		/*$wheret['tid']=empty($_POST['tid'])?'0':$_POST['tid'];
		$whereo['oid']=empty($_POST['tid'])?'0':$_POST['tid'];*/
		$tid = empty($_POST['tid'])?'0':$_POST['tid'];
		$wheret = "tid = $tid";
		$whereo = "oid = $tid";
		$goodstitle=empty($_POST['goodstitle'])?'':$_POST['goodstitle'];
		$visitor_id = $_SESSION['user']['id'];
		$shouquan = M('shouquan') -> field('group_id') -> where("visitor_id = '$visitor_id'") -> find();
		if($shouquan['group_id']){
			$shouquan2 = M('shouquan') -> field('visitor_id') -> where("group_id = '".$shouquan['group_id']."'") -> select(); 	
			foreach($shouquan2 as $k=> $val){
				if($k == '0'){
					$s_str = "'".$val['visitor_id']."'";
				}else{
					$s_str .= ","."'".$val['visitor_id']."'";
				}
			}
			$wheret.= " and visitor_id in($s_str)";
			$whereo.= " and visitor_id in($s_str)";
		}else{
			$wheret .= " and visitor_id = '$visitor_id'";
			$whereo .= " and visitor_id = '$visitor_id'";
		}		
		
		$data['shifa']=empty($_POST['shifa'])?'':$_POST['shifa'];
		
		//$data['refund_remarks']=empty($_POST['refund_remarks'])?'':$_POST['refund_remarks'];
		//快递状态没做
		
		
		$data['service']=empty($_POST['service'])?'':$_POST['service'];
		$data['post_fee']=empty($_POST['expressfee'])?'0':$_POST['expressfee'];
		$data['receiver_name']=empty($_POST['receiver_name'])?'':$_POST['receiver_name'];
		$data['receiver_mobile']=empty($_POST['receiver_mobile'])?'':$_POST['receiver_mobile'];
		$data['receiver_address']=empty($_POST['receiver_address'])?'':$_POST['receiver_address'];
		$data['receiver_address']=empty($_POST['receiver_address'])?'':$_POST['receiver_address'];
		$data['title']=empty($_POST['shop'])?'':$_POST['shop'];
		$data['seller_flag']=empty($_POST['seller_flag'])?'':$_POST['seller_flag'];
		
		$datta_orders['logistics_company']=empty($_POST['express'])?'':$_POST['express'];
		$datta_orders['invoice_no']=empty($_POST['expressno'])?'':$_POST['expressno'];
		$datta_orders['title']=empty($_POST['goodstitle'])?'':$_POST['goodstitle'];
		$datta_orders['num']=empty($_POST['num'])?0:$_POST['num'];
		$datta_orders['price']=empty($_POST['price'])?0:$_POST['price'];
		$datta_orders['sh_status']=empty($_POST['sh_status'])?0:$_POST['sh_status'];
		$datta_orders['shifa']=empty($_POST['shifa'])?'':$_POST['shifa'];
		
		
		$trades=M('trades');
		$orders=M('orders');
		
		$orderinfo=$trades->where($wheret)->find();
		$rest=$trades->where($wheret)->save($data);
		$reso=$orders->where($whereo)->save($datta_orders);
		
		$goods=M('goods');
		$whereg['title']=$goodstitle;
		$goodsinfo=$goods->where($whereg)->find();
		
		if($reso!==false && $rest!==false)
		{
			if(empty($orderinfo['refund_num']))
			{
				$datag['stock']=$goodsinfo['stock']+$data['refund_num'];
			}
			else
			{
				$datag['stock']=$goodsinfo['stock']-$orderinfo['refund_num']+$data['refund_num'];
			}
			
			$resg=$goods->where($whereg)->save($datag);
			$this->success('编辑成功',$jumpurl);
		}
		else
		{
			$this->error('编辑失败',$jumpurl);
		}
		
	}
	/*public function customer_group(){
		
		$group=M('customer_group');
		$groupinfo=$group->field('id,name')->limit(10)->select();
		$count['count']=$group->count();
		$count['pageNo']=1;
		$count['pageSize']=10;
		$count['countpage']=ceil($count['count']/$count['pageSize']);
		$order['name']='id';
		$order['asc']='desc';
		
		$this->assign('groupinfo',$groupinfo);
		$this->assign("order",$order);
		$this->assign("count",$count);	
		$this->display();
    }
	
	public function group_find($pageNo,$pageSize,$title,$name,$asc){
		if(!empty($title)){
			$title=trim($title);
			$where['name'] = array('like',"%$title%");
			$data['title']=$title;
		}
		
		if(empty($name)){
			$name='id';
		}
		if(empty($asc)){
			$asc='desc';
		}
		
		$group = M("customer_group"); 
		$count['count']=$group->where($where)->count();
		$count['countpage']=ceil($count['count']/$pageSize);
		
		if($pageNo>=$count['countpage']){
			$pageNo=$count['countpage'];
		}
		if($pageNo<=0){
			$pageNo=1;
		}
		
		$groupinfo=$group->where($where)->order("$name $asc")->limit(($pageNo-1)*$pageSize,$pageSize)->select(); 
		
		$count['pageSize']=$pageSize;
		$count['pageNo']=$pageNo;
		$count['num']=$count['countpage']-4;
		$order['name']=$name;
		$order['asc']=$asc;
		$this->assign("groupinfo",$groupinfo);
		$this->assign("data",$data);
		$this->assign("res",$res);
		$this->assign("count",$count);
		$this->display('customer_group'); 
	}
	
	public function group_delete(){
		
		$id=empty($_REQUEST['id'])?0:$_REQUEST['id'];
		$group=M('customer_group');
		$res=$group->where('id='.$id)->delete();
		if($res)
		{
			$this->success('删除成功');
		}
		else
		{
			$this->error('删除失败');
		}
    }
	
	
	public function newgroup(){
		//var_dump($_REQUEST);die();
		$name=empty($_REQUEST['name'])?'':trim($_REQUEST['name']);
		$id=empty($_REQUEST['id'])?'':$_REQUEST['id'];
		
		if($id){
			$this->group_edit($name,$id);
		}else{
			$this->group_add($name);
		}
    }
	
	
	public function group_add($name){
		
		//$name=empty($_REQUEST['name'])?'':$_REQUEST['name'];
		
		if(!empty($name))
		{
		    $group=M('customer_group');
			$data['name']=$name;
			$res=$group->add($data);
			if($res)
			{
				$this->success('添加成功');
			}
			else
			{
				$this->error('添加失败');
			}	
		}
    }
	
	public function group_edit($name,$id){
		$group=M('customer_group');
		
		//$name=empty($_REQUEST['name'])?'':$_REQUEST['name'];
		//$id=empty($_REQUEST['id'])?'':$_REQUEST['id'];
		
		if(!empty($id))
		{
			$data['name']=$name;
			$where['id']=$id;
			$res=$group->where($where)->save($data);
			if($res!==false)
			{
				$this->success('修改成功');
			}
			else
			{
				$this->success('修改失败');
			}
		}
    }*/
	
}


?>